Redis > Query Model > Regular Expressions Support


Redis supports some search commands that uses regular expressions such as KEYS which searches all keys in a Redis instance. Additionally Redis supports the SCAN command which is used to search and iterate through all keys and values (SSCAN, HSCAN, and ZSCAN are the same but specific for each data type).

KEYS and SCAN can use global-style regular expression patterns. Example of what can be used is shown below: